package com.wz.customerserv.feign;

import com.wz.customerserv.feign.fallback.ProducerServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="producer-serv", path = "/producer"
//       ,fallback = ProducerServiceFallback.class)
//       ,fallbackFactory = ProducerServiceFallbackFactory.class
        )
public interface ProducerService {

    @GetMapping("/addPrefix")
    public String addPrefix(@RequestParam("name") String name);
}
